<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <div id="app">
        <button @click="random=Math.random()">点我呀</button>
        <span>{{random}}</span>
        <h1 v-if="random>=0.75">看到我了？ &gt;=0.75</h1>
        <h1 v-else-if="random>=0.5">看到我了？ &gt;=0.5</h1>
        <h1 v-else-if="random>=0.2">看到我了？ &gt;=0.2</h1>
        <h1 v-else>看到我了？ &lt;=0.2</h1>


    </div>
    <script>
        let vm = new Vue({
            el: "#app",
            data: {
                random: 1

            }
        });
    </script>
</body>

</html>